package com.wanda.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.RoomDAO;
import com.wanda.model.RoomModel;
import com.wanda.model.RoomPBUAPModel;
import com.wanda.service.RoomService;

@Service
public class RoomServiceImpl implements RoomService{

	@Autowired
	private RoomDAO roomDAO;
	
	public void insertRoom(RoomModel model) {
		// TODO Auto-generated method stub
		roomDAO.insertRoom(model);
	}

	public int updateRoom(RoomModel model) {
		// TODO Auto-generated method stub
		return roomDAO.updateRoom(model);
	}

	public int deleteRoom(RoomModel model) {
		return roomDAO.deleteRoom(model);
	}

	public RoomModel selectById(String id) {
		// TODO Auto-generated method stub
		return roomDAO.selectById(id);
	}

	public List<RoomPBUAPModel> selectAll() {
		// TODO Auto-generated method stub
		return roomDAO.selectAll();
	}
	public List<RoomModel> selectBySql(String SeacherSql) {
		// TODO Auto-generated method stub
		return roomDAO.selectBySql(SeacherSql);
	}

	public List<RoomPBUAPModel> select(Map t) {
		// TODO Auto-generated method stub
		return roomDAO.select(t);
	}

	public int updates(Map id) {
		// TODO Auto-generated method stub
		return roomDAO.updates(id);
	}

	public int updateImpl(RoomPBUAPModel model) {
		// TODO Auto-generated method stub
		return roomDAO.updateImpl(model);
	}

	public List<RoomPBUAPModel> selectsn(Map id) {
		// TODO Auto-generated method stub
		return roomDAO.selectsn(id);
	}

	public List<RoomPBUAPModel> selectAlls(String id) {
		// TODO Auto-generated method stub
		return roomDAO.selectAlls(id);
	}

	public int updatec(Map map) {
		// TODO Auto-generated method stub
		return roomDAO.updatec(map);
	}

	public List<RoomPBUAPModel> selectAlll(String tel) {
		// TODO Auto-generated method stub
		return roomDAO.selectAlll(tel);
	}


}
